//
//  DMMessageImageModel.h
//  HDMainWindow
//
//  Created by apple on 2017/5/8.
//  Copyright © 2017年 com.devin.definesys. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DMMessageBaseModel.h"

@interface DMMessageImageModel : DMMessageBaseModel

//GIF动画停止时，显示的照片索引。在恢复动画时，从此帧开始播放
@property (nonatomic) NSInteger gifShowIndex;

#pragma mark - 图片消息

@property (nonatomic, weak) UIImage *thumbnailImage;

@property (nonatomic) NSString *thumbnailImagePath ;

@property (nonatomic) CGSize thumbnailImageSize;

- (UIImage *)fullImage;

#pragma mark - 附件、文件
//附件下载地址
@property (nonatomic, copy) NSString *fileRemotePath;
//附件本地地址
@property (nonatomic, copy) NSString *fileLocalPath;
//单位为字节
@property (nonatomic) long long fileSize;
//附件上传进度，范围为0--100
@property (nonatomic) NSInteger fileUploadProgress;
//附件下载进度，范围为0--100
@property (nonatomic) NSInteger fileDownloadProgress;

@property (nonatomic, readonly) BOOL isFetchingThumbnail;

@property (nonatomic, readonly) BOOL isFetchingAttachment;

@end
